#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QPolygon>

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    void setProgress(int value);
    ~MainWindow();

protected:
    void paintEvent(QPaintEvent* event) override;
    void mousePressEvent(QMouseEvent* event) override;
    void keyPressEvent(QKeyEvent* event) override;
    void drawTriangleButton(QPainter& painter);

private:
    int progress;
    QPolygon triangleButton;
    QRect squareButton;
    QRect circleButton;
    QPolygon crossButton;
};
#endif // MAINWINDOW_H
